
<!--{template admin/header}-->

<script>

			//加载二级联动菜单
		function get_sub_cat_val(obj){
			var catid = $(obj).val();
			if(catid>0){
				$('#parent_id').val($(obj).val());
				$.get('index.php?mod=attach&code=get_sub_cat&id='+$(obj).val(),{is_ajax:1},function(r){
				
					$(obj).nextAll('select').remove();
					$(obj).after(r+'');
					
					
				},'html');
			}else{
				$('#parent_id').val($(obj).attr('data-parent-id'));
			}
		}


</script>
<form method="post" action="admin.php?mod=attachcat&code=do_add">
<table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder">
	<tr class="header">
		<td colspan="2">
		添加分类
		</td>
	</tr>
	<tr>
		<td class="altbg1" width="20%" bgcolor="#F8F8F8">父级分类</td>
		<td class="altbg2" width="80%" align="right" bgcolor="#FFFFFF">
			<input type="hidden" name="data[parent_id]" id="parent_id">
			<!--{eval echo jlogic('attach_category')->get_select_html();}-->
		</td>
	</tr>	
	<tr>
		<td class="altbg1" width="20%" bgcolor="#F8F8F8">分类名字</td>
		<td class="altbg2" width="80%" align="right" bgcolor="#FFFFFF">
			<input type="text" name="data[name]" >
		</td>
	</tr>
	<tr>
		<td class="altbg1" width="20%" bgcolor="#F8F8F8">排列(数值越大排在后面)</td>
		<td class="altbg2" width="80%" align="right" bgcolor="#FFFFFF">
			<input type="text" name="data[order]">
		</td>
	</tr>

</table>
<br>
<center><input type="submit" class="button" id="submit" name="addsubmit" value="保 存"></center>
</form>